{include file="Include/H_ui_head" /}
<title>知识库文章上传</title>
<base target = "_self">
</head>
<body>
<article class="page-container">
    <form action="#" method="POST" enctype="multipart/form-data" class="form form-horizontal" id="submit">
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>文章：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="file" name="knowledge_base"><br>
                <span style="color: red;font-size: 10px;">只允许上传TXT格式文件</span>
            </div>
        </div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <input type="submit" name="sub" value="提交" class="btn btn-success radius" onclick="subform();">
            </div>
        </div>
    </form>
</article>
{include file="include/H_ui_foot" /}
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="__LIB__/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="__LIB__/jquery.validation/1.14.0/jquery.validate.js"></script>
<script type="text/javascript" src="__LIB__/jquery.validation/1.14.0/validate-methods.js"></script>
<script type="text/javascript" src="__LIB__/jquery.validation/1.14.0/messages_zh.js"></script>
<script type="text/javascript">
    //表单提交
    function subform(){
        var form = document.getElementById('submit');//获取表单
        form.action="{:Url('platform/file')}";//重新设置提交url
        form.submit();//提交表单
        window.parent.location.reload();//关闭窗口
    }
</script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>
